package cn.aezo.minions.gen.mapper;

import cn.aezo.minions.gen.model.User;
import org.apache.ibatis.annotations.Select;

/**
 * Created by smalle on 2017/10/21.
 */
public interface UserDao {
    @Select("select * from user where user_id = #{userId}")
    User findOne(Long userId);

    @Select("select * from user where username = #{username}")
    User findByUsername(String username);
}
